package com.yhy.consume.api;

import com.yhy.common.core.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class TestFeign {

    @GetMapping("/test")
    public Result<?> test(@RequestParam("id") Long id) {
        return Result.ok("收到id：" + id);
    }

}
